<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查看结果</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles1.css">
	-->
	<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet">
	<link href="${pageContext.request.contextPath}/css/stylebase.css" rel="stylesheet">


  </head>
  <body>
  <div class="container" id="divMain">
	<section id="content">
		 <s:form action="/answer/AnswerAction_save.do" method="post">
			<div>
				<s:hidden value="%{userid}" name="uid" /> <!--uid  -->
  				<s:hidden value="%{array}" name="questionids" />  <!--questionids  -->
  				<s:hidden value="%{answersum}" name="answers" /> <!--answers  -->
			</div>
			<div style="height: 120px">
				<h4>错误的题:</h4>
				<h5>
				<s:iterator value="errorlist" status="stuts"> 
					<s:iterator value="errorlist[#stuts.index]" > 
						<s:if test="errorlist[#stuts.index]!=0">
						<s:a target="_blank" action="/question/QuestionAction_select?qid=%{errorlist[#stuts.index]}">第<s:property value="#stuts.index+1" />题      </s:a>
						</s:if>		
					</s:iterator> 
				</s:iterator>
				</h5>
			</div>
			<h3>得分：<s:property value="mark" /></h3>
			<div>
				
				<s:a action="/user/UserAction_updata?score=%{mark}">保存分数</s:a>
   			    <s:submit value="查看试卷"  />
			</div>
		</s:form>
		
	</section><!-- content -->
</div><!-- container -->
  </body>
</html>
